﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body style="background-color:White">
    

    <pre style="font-family: Consolas; font-size: 13; color: black; background: white;"><span 
        style="color:blue;">using</span>&nbsp;System;
<span style="color:blue;">using</span>&nbsp;System.Data;
<span style="color:blue;">using</span>&nbsp;System.Data.SqlClient;
<span style="color:blue;">using</span>&nbsp;System.Collections.Generic;
<span style="color:blue;">using</span>&nbsp;Delta_util.Estaticos;
<span style="color:blue;">using</span>&nbsp;Delta_entidad.Base;
<span style="color:blue;">using</span>&nbsp;Delta_entidad.Atributos;
<span style="color:blue;">namespace</span>&nbsp;SitioINewThreadSoft.Entidades
{
&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">Serializable</span>]
&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttEntidad</span>(<span style="color:#a31515;">&quot;compra&quot;</span>,&nbsp;<span 
        style="color:#a31515;">&quot;id_compra&quot;</span>,&nbsp;<span style="color:blue;">false</span>,&nbsp;100,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_OPERACION_GRID</span>.INSERTAR,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_OPERACION_GRID</span>.ACTUALIZAR,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_OPERACION_GRID</span>.SELECCIONAR)]
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;<span style="color:blue;">class</span>&nbsp;<span 
        style="color:#2b91af;">compra</span>&nbsp;:&nbsp;<span style="color:#2b91af;">TipoBase</span>,&nbsp;<span 
        style="color:#2b91af;">ITipo</span>
&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">private</span>&nbsp;System.<span 
        style="color:#2b91af;">Int16</span>&nbsp;_id_compra;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">private</span>&nbsp;System.<span 
        style="color:#2b91af;">Int16</span>?&nbsp;_factura;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">private</span>&nbsp;System.<span 
        style="color:#2b91af;">Int16</span>?&nbsp;_orden_compra;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">private</span>&nbsp;System.<span 
        style="color:#2b91af;">DateTime</span>?&nbsp;_fecha;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">private</span>&nbsp;System.<span 
        style="color:#2b91af;">String</span>&nbsp;_folio;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">private</span>&nbsp;System.<span 
        style="color:#2b91af;">String</span>&nbsp;_comentario;
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttrParametro</span>(System.Data.<span 
        style="color:#2b91af;">SqlDbType</span>.SmallInt,&nbsp;5,&nbsp;<span 
        style="color:blue;">null</span>,&nbsp;System.Data.<span style="color:#2b91af;">ParameterDirection</span>.Input,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.INSERTAR,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.OBTENER,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.ELIMINAR)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttPropiedad</span>(<span 
        style="color:#a31515;">&quot;Clave&nbsp;compra&quot;</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;<span style="color:blue;">false</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_EDITOR</span>.TEXBOX,&nbsp;<span style="color:blue;">null</span>,&nbsp;0)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;System.<span style="color:#2b91af;">Int16</span>&nbsp;id_compra
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">get</span>&nbsp;{&nbsp;<span style="color:blue;">return</span>&nbsp;_id_compra;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">set</span>&nbsp;{&nbsp;_id_compra&nbsp;=&nbsp;<span 
        style="color:blue;">value</span>;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttrParametro</span>(System.Data.<span 
        style="color:#2b91af;">SqlDbType</span>.SmallInt,&nbsp;5,&nbsp;<span 
        style="color:blue;">null</span>,&nbsp;System.Data.<span style="color:#2b91af;">ParameterDirection</span>.Input,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.INSERTAR)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttPropiedad</span>(<span 
        style="color:#a31515;">&quot;Factura&quot;</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;<span style="color:blue;">false</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_EDITOR</span>.TEXBOX,&nbsp;<span style="color:blue;">null</span>,&nbsp;1)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;System.<span style="color:#2b91af;">Int16</span>?&nbsp;factura
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">get</span>&nbsp;{&nbsp;<span style="color:blue;">return</span>&nbsp;_factura;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">set</span>&nbsp;{&nbsp;_factura&nbsp;=&nbsp;<span 
        style="color:blue;">value</span>;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttrParametro</span>(System.Data.<span 
        style="color:#2b91af;">SqlDbType</span>.SmallInt,&nbsp;5,&nbsp;<span 
        style="color:blue;">null</span>,&nbsp;System.Data.<span style="color:#2b91af;">ParameterDirection</span>.Input,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.INSERTAR)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttPropiedad</span>(<span 
        style="color:#a31515;">&quot;Orden&nbsp;de&nbsp;compra&quot;</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;<span style="color:blue;">false</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_EDITOR</span>.TEXBOX,&nbsp;<span style="color:blue;">null</span>,&nbsp;2)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;System.<span style="color:#2b91af;">Int16</span>?&nbsp;orden_compra
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">get</span>&nbsp;{&nbsp;<span style="color:blue;">return</span>&nbsp;_orden_compra;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">set</span>&nbsp;{&nbsp;_orden_compra&nbsp;=&nbsp;<span 
        style="color:blue;">value</span>;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttrParametro</span>(System.Data.<span 
        style="color:#2b91af;">SqlDbType</span>.DateTime,&nbsp;23,&nbsp;<span 
        style="color:blue;">null</span>,&nbsp;System.Data.<span style="color:#2b91af;">ParameterDirection</span>.Input,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.INSERTAR)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttPropiedad</span>(<span 
        style="color:#a31515;">&quot;Fecha&quot;</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;<span style="color:blue;">false</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_EDITOR</span>.TEXBOX,&nbsp;<span style="color:blue;">null</span>,&nbsp;3)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;System.<span style="color:#2b91af;">DateTime</span>?&nbsp;fecha
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">get</span>&nbsp;{&nbsp;<span style="color:blue;">return</span>&nbsp;_fecha;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">set</span>&nbsp;{&nbsp;_fecha&nbsp;=&nbsp;<span 
        style="color:blue;">value</span>;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttrParametro</span>(System.Data.<span 
        style="color:#2b91af;">SqlDbType</span>.VarChar,&nbsp;5,&nbsp;<span 
        style="color:blue;">null</span>,&nbsp;System.Data.<span style="color:#2b91af;">ParameterDirection</span>.Input,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.INSERTAR)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttPropiedad</span>(<span 
        style="color:#a31515;">&quot;Folio&quot;</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;<span style="color:blue;">false</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_EDITOR</span>.TEXBOX,&nbsp;<span style="color:blue;">null</span>,&nbsp;4)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;System.<span style="color:#2b91af;">String</span>&nbsp;folio
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">get</span>&nbsp;{&nbsp;<span style="color:blue;">return</span>&nbsp;_folio;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">set</span>&nbsp;{&nbsp;_folio&nbsp;=&nbsp;<span 
        style="color:blue;">value</span>;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttrParametro</span>(System.Data.<span 
        style="color:#2b91af;">SqlDbType</span>.VarChar,&nbsp;1000,&nbsp;<span 
        style="color:blue;">null</span>,&nbsp;System.Data.<span style="color:#2b91af;">ParameterDirection</span>.Input,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.INSERTAR)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttPropiedad</span>(<span 
        style="color:#a31515;">&quot;Comentario&quot;</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;<span style="color:blue;">false</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_EDITOR</span>.TEXBOX,&nbsp;<span style="color:blue;">null</span>,&nbsp;5)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;System.<span style="color:#2b91af;">String</span>&nbsp;comentario
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">get</span>&nbsp;{&nbsp;<span style="color:blue;">return</span>&nbsp;_comentario;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">set</span>&nbsp;{&nbsp;_comentario&nbsp;=&nbsp;<span 
        style="color:blue;">value</span>;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 
 
&nbsp;&nbsp;&nbsp;&nbsp;}
}
</pre>
    <p>
        &nbsp;</p>
    <pre style="font-family: Consolas; font-size: 13; color: black; background: white;"><span 
        style="color:blue;">using</span>&nbsp;System;
<span style="color:blue;">using</span>&nbsp;System.Data;
<span style="color:blue;">using</span>&nbsp;System.Data.SqlClient;
<span style="color:blue;">using</span>&nbsp;System.Collections.Generic;
<span style="color:blue;">using</span>&nbsp;Delta_util.Estaticos;
<span style="color:blue;">using</span>&nbsp;Delta_entidad.Base;
<span style="color:blue;">using</span>&nbsp;Delta_entidad.Atributos;
<span style="color:blue;">namespace</span>&nbsp;SitioINewThreadSoft.Entidades
{
&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">Serializable</span>]
&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttEntidad</span>(<span style="color:#a31515;">&quot;compra_detalle&quot;</span>,&nbsp;<span 
        style="color:#a31515;">&quot;id_compra,producto&quot;</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;100,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_OPERACION_GRID</span>.INSERTAR,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_OPERACION_GRID</span>.ACTUALIZAR)]
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;<span style="color:blue;">class</span>&nbsp;<span 
        style="color:#2b91af;">compra_detalle</span>&nbsp;:&nbsp;<span style="color:#2b91af;">TipoBase</span>,&nbsp;<span 
        style="color:#2b91af;">ITipo</span>
&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">private</span>&nbsp;System.<span 
        style="color:#2b91af;">Int16</span>&nbsp;_id_compra;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">private</span>&nbsp;System.<span 
        style="color:#2b91af;">Int16</span>?&nbsp;_cantidad;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">private</span>&nbsp;<span style="color:blue;">double</span>?&nbsp;_precio;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">private</span>&nbsp;System.<span 
        style="color:#2b91af;">String</span>&nbsp;_producto;
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttrParametro</span>(System.Data.<span 
        style="color:#2b91af;">SqlDbType</span>.SmallInt,&nbsp;5,&nbsp;<span 
        style="color:blue;">null</span>,&nbsp;System.Data.<span style="color:#2b91af;">ParameterDirection</span>.Input,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.INSERTAR,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.OBTENER,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.OBTENER_TODOS,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.ELIMINAR)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttPropiedad</span>(<span 
        style="color:#a31515;">&quot;Clave&nbsp;compra&quot;</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:blue;">false</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_EDITOR</span>.TEXBOX,&nbsp;<span style="color:blue;">null</span>,&nbsp;0)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;System.<span style="color:#2b91af;">Int16</span>&nbsp;id_compra
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">get</span>&nbsp;{&nbsp;<span style="color:blue;">return</span>&nbsp;_id_compra;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">set</span>&nbsp;{&nbsp;_id_compra&nbsp;=&nbsp;<span 
        style="color:blue;">value</span>;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttrParametro</span>(System.Data.<span 
        style="color:#2b91af;">SqlDbType</span>.SmallInt,&nbsp;5,&nbsp;<span 
        style="color:blue;">null</span>,&nbsp;System.Data.<span style="color:#2b91af;">ParameterDirection</span>.Input,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.INSERTAR)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttPropiedad</span>(<span 
        style="color:#a31515;">&quot;Cantidad&quot;</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;<span style="color:blue;">false</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_EDITOR</span>.TEXBOX,&nbsp;<span style="color:blue;">null</span>,&nbsp;1)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;System.<span style="color:#2b91af;">Int16</span>?&nbsp;cantidad
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">get</span>&nbsp;{&nbsp;<span style="color:blue;">return</span>&nbsp;_cantidad;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">set</span>&nbsp;{&nbsp;_cantidad&nbsp;=&nbsp;<span 
        style="color:blue;">value</span>;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttrParametro</span>(System.Data.<span 
        style="color:#2b91af;">SqlDbType</span>.Float,&nbsp;53,&nbsp;<span 
        style="color:blue;">null</span>,&nbsp;System.Data.<span style="color:#2b91af;">ParameterDirection</span>.Input,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.INSERTAR)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttPropiedad</span>(<span 
        style="color:#a31515;">&quot;Precio&quot;</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;<span style="color:blue;">false</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_EDITOR</span>.TEXBOX,&nbsp;<span style="color:blue;">null</span>,&nbsp;2)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;<span style="color:blue;">double</span>?&nbsp;precio
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">get</span>&nbsp;{&nbsp;<span style="color:blue;">return</span>&nbsp;_precio;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">set</span>&nbsp;{&nbsp;_precio&nbsp;=&nbsp;<span 
        style="color:blue;">value</span>;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttrParametro</span>(System.Data.<span 
        style="color:#2b91af;">SqlDbType</span>.VarChar,&nbsp;50,&nbsp;<span 
        style="color:blue;">null</span>,&nbsp;System.Data.<span style="color:#2b91af;">ParameterDirection</span>.Input,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.INSERTAR,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.OBTENER,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.ELIMINAR)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttPropiedad</span>(<span 
        style="color:#a31515;">&quot;Producto&quot;</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;<span style="color:blue;">false</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_EDITOR</span>.TEXBOX,&nbsp;<span style="color:blue;">null</span>,&nbsp;3)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;System.<span style="color:#2b91af;">String</span>&nbsp;producto
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">get</span>&nbsp;{&nbsp;<span style="color:blue;">return</span>&nbsp;_producto;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">set</span>&nbsp;{&nbsp;_producto&nbsp;=&nbsp;<span 
        style="color:blue;">value</span>;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 
 
&nbsp;&nbsp;&nbsp;&nbsp;}
}
</pre>
    

</body>
</html>
